<template>
  <!-- WebsiteScanCode 扫码登录官网 -->
  <Loading v-model="loading">
    <view class="container">
      <Header title="扫码" />
    </view>
  </Loading>
</template>

<script lang="ts" setup>
  /**  WebsiteScanCode  扫码登录官网 */
  import Header from '@/components/Header/index.vue';
  import { onLoad } from '@/router';
  import { isLogin } from '@/utils/is';
  import Loading from '@/components/Loading/index.vue';
  import { ref } from 'vue';
  import { submitWbsiteCode } from '@/api';

  const loading = ref(true);
  onLoad<'WebsiteScanCode'>((op) => {
    isLogin(() => {
      submitWbsiteCode(op.scene)
    }, true);
  });
</script>

<style lang="scss" scoped>
  .container {
    width: 100vw;
    height: 100vh;
  }
</style>
